﻿<!--//
////////////////////////////////////////////////////////////////////////////////
//
//  Created by Fernando Cerqueira
//  Copyright (c) 2011.  All rights reserved.
//
////////////////////////////////////////////////////////////////////////////////
//-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <link rel="stylesheet" href="styles/settings.css" />
    <script src="scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="scripts/easySlider1.5.js" type="text/javascript"></script>
    <script src="scripts/settings.js" type="text/javascript"></script>
    <script type="text/javascript">
        $().ready(function () {
            $(window).unload(function () {
                if (FindWin8StarMenuKey) {
                    //prevent start Windows without the 8 meter style
                    if (preserveShutDown == "checked") {
                        WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\RPEnabled", 1, "REG_DWORD");
                    }
                }
            });
            $("#OptWin8").click(function () {
                setWin8();
            });
            $("#OptWin7").click(function () {
                setWin7();
            });
            $("#imgprev").click(function () {
                setPrev();
            });
            $("#imgnext").click(function () {
                setNext();
            });
            var iniimg = System.Gadget.Settings.read("BackgroundTheme");
            $("#bgsliders").easySlider({
                prevId: 'imgprev',
                nextId: 'imgnext',
                controlsShow: false,
                continuous: true,
                StartShow: (iniimg - 1)
            });
            $("#BntCheck").click(function () {
                FindVersion();
            });
            $("#ChkUpdate").click(function () {
                CheckAuto = $("#ChkUpdate").attr("checked");
                if (CheckAuto == "") {
                    $("#msgupdate").attr("class", "MsgupdateYellow");
                    $("#TextUpdate").empty();
                }
                else {
                    FindVersion();
                }
            });
            startup();
        });
    </script>
</head>
<body>
    <div>
        <input id="ChkUpdate" type="checkbox" />
        <span>Auto update notifier </span>
        <input id="BntCheck" type="button" value="Check Update" />
        <div id="msgupdate" class="MsgupdateYellow">
            <a id="lnkupdate" href="http://windows8startmenu.codeplex.com/" target="_blank"><span
                id="TextUpdate">Wait result...</span></a>
        </div>
    </div>
    <hr />
    <div>
        <input id="ChkPreserve" type="checkbox" checked="checked" />
        <span>Preserve Windows 8 style before on shutdown</span>
    </div>
    <hr />
    <div>
        <table>
            <tr>
                <td>
                    <input id="OptWin8" type="radio" />
                </td>
                <td>
                    <img alt="" src="Images/opcw8.png" />
                </td>
                <td>
                    Windows 8 Style
                </td>
            </tr>
            <tr>
                <td>
                    <input id="OptWin7" type="radio" />
                </td>
                <td>
                    <img alt="" src="Images/opcw7.png" />
                </td>
                <td>
                    Windows 7 Style
                </td>
            </tr>
        </table>
    </div>
    <div class="DivBackGround">
        <div id="bgsliders" class="DivImgSlide">
            <ul>
                <li>
                    <img src="images/bg_1.png" alt="" /></li>
                <li>
                    <img src="images/bg_2.png" alt="" /></li>
                <li>
                    <img src="images/bg_3.png" alt="" /></li>
                <li>
                    <img src="images/bg_4.png" alt="" /></li>
                <li>
                    <img src="images/bg_5.png" alt="" /></li>
            </ul>
        </div>
        <table>
            <tr>
                <td class="TdLeftSelect">
                    <img id="imgprev" alt="" src="Images/previous.png" class="ImgSelect" />
                </td>
                <td class="TdCenterSelect">
                    Background
                </td>
                <td class="TdRightSelect">
                    <img id="imgnext" alt="" src="Images/next.png" class="ImgSelect" />
                </td>
            </tr>
        </table>
    </div>
    <div class="DivAuthor">
        <a id="refAuthor" title="http://windows8startmenu.codeplex.com/" href="http://windows8startmenu.codeplex.com/"
            target="_blank">Projet at CodePlex.<br />
            By Fernando Cerqueira</a>
    </div>
</body>
</html>
